package com.jige.jigetodo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling  // 启用定时任务
@EntityScan("com.jige.jigetodo.model.entity")  // 指定实体类所在包
@EnableJpaAuditing  // 如果使用JPA审计
@MapperScan("com.jige.jigetodo.mapper")
public class JigeToDoApplication {

    public static void main(String[] args) {
        SpringApplication.run(JigeToDoApplication.class, args);
    }

}
